SET(LIBWORMNET_SRC ./src/BuildPacket.cpp ./src/ByteBuffer.cpp ./src/DbField.cpp ./src/DbResult.cpp ./src/DbRow.cpp ./src/IDatabseModule.cpp ./src/ILogs.cpp ./src/IServerModule.cpp ./src/IChannelModule.cpp ./src/ISocketHandler.cpp ./src/SqlQueryTask.cpp ./src/SqlTask.cpp ./src/SqlTaskSet.cpp ./src/Tea.cpp ./src/TidyXML.cpp ./src/util.cpp ./src/VectorToken.cpp ./src/wmDatabase.cpp ./src/wmLogs.cpp ./src/wm_cryp.cpp ./src/wm_event.cpp ./src/wm_Exception.cpp  ./src/wm_LibeventServer.cpp ./src/wm_MSSql.cpp ./src/wm_MSSqlResult.cpp ./src/wm_MSSqlRow.cpp ./src/wm_mutex.cpp ./src/wm_Mysql.cpp ./src/wm_MysqlResult.cpp ./src/wm_MysqlRow.cpp ./src/wm_packet.cpp ./src/wm_queue.cpp ./src/wm_RaknetServer.cpp ./src/wm_semaphore.cpp ./src/wm_server.cpp ./src/wm_socket.cpp ./src/wm_std.cpp ./src/wm_string.cpp ./src/wm_time.cpp ./src/wm_app.cpp ./src/wm_SocketMap.cpp ./src/wm_LibeventChannel.cpp ./src/wm_RaknetChannel.cpp)
ADD_LIBRARY (wormnet STATIC ${LIBWORMNET_SRC})
INCLUDE_DIRECTORIES(./)
INCLUDE_DIRECTORIES(/usr/local/wormnet/include/)

INSTALL (TARGETS wormnet
	ARCHIVE DESTINATION lib
	)
INSTALL (DIRECTORY wormnet DESTINATION include/wormnet)